package com.qyer.lxp.model.price.normal;

import com.qyer.lxp.common.framework.adapter.DateAdapter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by jiangping on 16/5/19.
 */
@XmlRootElement(name = "dates")
@XmlAccessorType(XmlAccessType.FIELD)
public class AvailableDate implements Serializable{
    private static final long serialVersionUID = -1125536653374908240L;

    /**
     * 可售日期
     */
    @XmlElement(name = "date")
    @XmlJavaTypeAdapter(DateAdapter.class)
    private List<Date> dateList;

    public List<Date> getDateList() {
        return dateList;
    }

    public void setDateList(List<Date> dateList) {
        this.dateList = dateList;
    }

    @Override
    public String toString() {
        return "AvailableDate{" +
                "dateList=" + dateList +
                '}';
    }
}
